package com.notary.entity.po;


import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.notary.entity.*;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

@Data
public class ContractDTO {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 机构编码
     **/
    private String deptId;
    /**
     * 当事人
     **/
    private String dsr;

    /**
     * 类别'公证类别 0 合同公证 1电子存证 2 赋强公证'
     **/
    private String lb;

    /**
     * 类型 0借款合同
     **/
    private String lx;

    /**
     * 公证服务费
     **/
    private BigDecimal charge;
    /**
     * 公证事项
     **/
    private String notaryItem;


    @ApiModelProperty(value = "公证员编码")
    private String notaryId;

    @ApiModelProperty(value = "公证员姓名")
    private String notaryName;

    @ApiModelProperty(value = "助理编码")
    private String assistantId;

    @ApiModelProperty(value = "助理姓名")
    private String assistantName;

    @ApiModelProperty(value = "受理日期")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")

    private Date acceptDate;
    @ApiModelProperty(value = "申请日期")

    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date applyDate;

    @ApiModelProperty(value = "紧急度 0 普通,1 加急")
    private String priority;
    /**
     * 自然人信息
     **/
    private List<Person> personList;

    /**
     * 自然人信息
     **/
    private List<Company> companyList;

    /**
     * 文件
     **/
    private List<NotaryDocument> notaryDocumentList;

    private Integer pageSize;
    private Integer pageNum;
    private String notaryNo;
    private String remark;
    private Long contractId;
    private Integer status;
    private String owner;
    private Long userId;
    /**
     * 当前状态
     **/
    private Integer currentStatus;

    /**
     * 审批状态，0是通过 1是驳回
     **/
    private Integer approverStatus;

    /**
     * 公证词模板内容
     **/
    private String content;
    private String pdfImg;
    private Integer zpage;
    private Integer znum;
    private Integer qpage;
    private Integer qnum;
    private BigDecimal zx;
    private BigDecimal zy;
    private BigDecimal qx;
    private BigDecimal qy;

    private String beginDate;
    private String endDate;

    private String beginIssuingDate;
    private String endIssuingDate;

    private String beginCreateTime;
    private String endCreateTime;

    private String beginZxsqTime;
    private String endZxsqTime;

    private String beginZxTime;
    private String endZxTime;
    /**
     * 快递公司名称
     **/
    private String shipperName;
    /**
     * 物流单号
     **/
    private String logisticCode;
    private String ownerName;
    private String name;
    private String path;
    private Integer type;
    private Long templateId;
    private List<ContractWorkFlow> contractWorkFlowList;
    private List<ContractIssue> contractIssueList;
    private List<JSONObject> notaryZhixing;
    private List<String> addresseeList;
    private List<String> phoneList;
    private List<String> perviewList;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    /* 申请执行状态 0 申请中 1 申请成功 -1 失败 */
    private Integer executionType;

    /* 申请执行附件 */
    private List<NotaryDocument> applyAttachment;
    private String issuePassword;

    @ApiModelProperty(value = "签名地址")
    private String custNo;

    private String certificateNo;
    private String personQmImg;
    private String CanpanyQmImg;
    private Integer flag;
    private String companyNo;
    private String org;
    private String zxsqTime;
    private Integer selectExecutionType;
}
